﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FytSoa.Extensions
{
    /// <summary>
    /// 微信消息实体-统一消息
    /// https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/uniform-message/uniformMessage.send.html
    /// </summary>
    public class WxMsgAllModel
    {
        public string access_token { get; set; }

        public string touser { get; set; }

        public WeappTemplateMsg weapp_template_msg { get; set; }

        public MpTemplateMsg mp_template_msg { get; set; }
    }

    /// <summary>
    /// 微信消息实体-统一消息
    /// https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.send.html
    /// </summary>
    public class WxMsgUserModel
    {
        public string access_token { get; set; }

        public string touser { get; set; }

        public string template_id { get; set; }

        public string page { get; set; }

        public string form_id { get; set; }

        public string data { get; set; }
    }

    /// <summary>
    /// 小程序模板消息相关的信息
    /// </summary>
    public class WeappTemplateMsg
    {
        /// <summary>
        /// 小程序模板ID
        /// </summary>
        public string template_id { get; set; }

        /// <summary>
        /// 小程序页面路径
        /// </summary>
        public string page { get; set; }

        /// <summary>
        /// 小程序模板消息formid
        /// </summary>
        public string form_id { get; set; }

        /// <summary>
        /// 小程序模板数据
        /// </summary>
        public string data { get; set; }

        /// <summary>
        /// 小程序模板放大关键词
        /// </summary>
        public string emphasis_keyword { get; set; }
    }

    /// <summary>
    /// 公众号模板消息相关的信息
    /// </summary>
    public class MpTemplateMsg
    {
        /// <summary>
        /// 公众号appid，要求与小程序有绑定且同主体
        /// </summary>
        public string appid { get; set; }

        /// <summary>
        /// 公众号模板id
        /// </summary>
        public string template_id { get; set; }

        /// <summary>
        /// 公众号模板消息所要跳转的url
        /// </summary>
        public string url { get; set; }

        /// <summary>
        /// 公众号模板消息所要跳转的小程序，小程序的必须与公众号具有绑定关系
        /// </summary>
        public string miniprogram { get; set; }

        /// <summary>
        /// 公众号模板消息的数据
        /// </summary>
        public string data { get; set; }
    }

    

}
